package com.piece.mall.api.constant;

public interface MallConstant {

    /**
     * 购物车前缀
     */
    String CART_PREFIX = "piece:mall:cart:";

    /**
     * 订单验证令牌
     */
    String TOKEN_PREFIX = "piece:mall:order:token";

    /**
     * 秒杀场次前缀
     */
    String SESSION_CACHE_PREFIX = "piece:mall:seckill:sessions:";

    /**
     * 秒杀商品前缀
     */
    String SECKILL_CACHE_KEY = "piece:mall:seckill:skus";

    /**
     * 用户占位前缀
     */
    String SECKILL_USER_PREFIX = "piece:mall:seckill:user:";

    /**
     * 商品随机码
     */
    String SKU_STOCK_SEMAPHORE = "piece:mall:seckill:stock:";
}
